package com.yoomiito.app.model.home;

import android.os.Parcel;
import android.os.Parcelable;

import com.yoomiito.app.model.video.VideoOtherInfo;

/**
 * 短视频信息
 */
public class VideoClipInfo implements Parcelable {
    private String img_width;//图片宽
    private String img_height;//图片高
    private String video_width;//视频宽
    private String video_height;//视频高
    private String video_img;//封面图
    private String video_url;//视频连接
    private String title;//标题
    private String id;
    private String like_num;//点赞数
    private String share_num;//分享数
    private String play_num;//播放数
    private VideoOtherInfo mVideoOtherInfo;//视频相关信息  包括商品 及 滚动列表
    private String download_video_url;

    private String video;

    public String getImg_width() {
        return img_width;
    }

    public void setImg_width(String img_width) {
        this.img_width = img_width;
    }

    public String getImg_height() {
        return img_height;
    }

    public void setImg_height(String img_height) {
        this.img_height = img_height;
    }

    public String getVideo_width() {
        return video_width;
    }

    public void setVideo_width(String video_width) {
        this.video_width = video_width;
    }

    public String getVideo_height() {
        return video_height;
    }

    public void setVideo_height(String video_height) {
        this.video_height = video_height;
    }

    public String getVideo_img() {
        return video_img;
    }

    public void setVideo_img(String video_img) {
        this.video_img = video_img;
    }

    public String getVideo_url() {
        return video_url;
    }

    public void setVideo_url(String video_url) {
        this.video_url = video_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLike_num() {
        return like_num;
    }

    public void setLike_num(String like_num) {
        this.like_num = like_num;
    }

    public String getShare_num() {
        return share_num;
    }

    public void setShare_num(String share_num) {
        this.share_num = share_num;
    }

    public String getPlay_num() {
        return play_num;
    }

    public void setPlay_num(String play_num) {
        this.play_num = play_num;
    }

    public VideoOtherInfo getVideoOtherInfo() {
        return mVideoOtherInfo;
    }

    public void setVideoOtherInfo(VideoOtherInfo videoOtherInfo) {
        mVideoOtherInfo = videoOtherInfo;
    }

    public String getDownload_video_url() {
        return download_video_url;
    }

    public void setDownload_video_url(String download_video_url) {
        this.download_video_url = download_video_url;
    }

    public String getVideo() {
        return video;
    }

    public void setVideo(String video) {
        this.video = video;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.img_width);
        dest.writeString(this.img_height);
        dest.writeString(this.video_width);
        dest.writeString(this.video_height);
        dest.writeString(this.video_img);
        dest.writeString(this.video_url);
        dest.writeString(this.video);
        dest.writeString(this.title);
        dest.writeString(this.id);
        dest.writeString(this.like_num);
        dest.writeString(this.share_num);
        dest.writeString(this.play_num);
        dest.writeParcelable(this.mVideoOtherInfo, flags);
        dest.writeString(this.download_video_url);
    }

    public VideoClipInfo() {
    }

    protected VideoClipInfo(Parcel in) {
        this.img_width = in.readString();
        this.img_height = in.readString();
        this.video_width = in.readString();
        this.video = in.readString();
        this.video_height = in.readString();
        this.video_img = in.readString();
        this.video_url = in.readString();
        this.title = in.readString();
        this.id = in.readString();
        this.like_num = in.readString();
        this.share_num = in.readString();
        this.play_num = in.readString();
        this.mVideoOtherInfo = in.readParcelable(VideoOtherInfo.class.getClassLoader());
        this.download_video_url = in.readString();
    }

    public static final Parcelable.Creator<VideoClipInfo> CREATOR = new Parcelable.Creator<VideoClipInfo>() {
        @Override
        public VideoClipInfo createFromParcel(Parcel source) {
            return new VideoClipInfo(source);
        }

        @Override
        public VideoClipInfo[] newArray(int size) {
            return new VideoClipInfo[size];
        }
    };
}
